﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CRMBiz;
using Newtonsoft.Json;

namespace CRMWeb.WebServices
{
    /// <summary>
    /// Summary description for DeleteApplications
    /// </summary>
    public class DeleteApplications : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            try
            {
                string app_id = string.IsNullOrEmpty(context.Request.Form["app_id"]) ? "0" : context.Request.Form["app_id"];
                string Msg = ClientProfileHandler.DeleteOldForms(app_id);
                context.Response.Write(Msg);
            }
            catch (Exception)
            {
                throw;
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}